package day0718;

import java.util.Scanner;

public class Test5 {
    public static void main(String[] args) {
        Scanner sc=new Scanner(System.in);
        double score =0;
        do {
            //1.定义一个double类型的变量表示成绩
            score = sc.nextDouble();
            //2.用if-else if结构判断成绩等级
            if (0 < score && score < 60) {
                System.out.println("成绩不及格");
            } else if (60 <= score && score < 75) {
                System.out.println("成绩等级为 中等 ");
            } else if (75 <= score && score < 85) {
                System.out.println("成绩等级为 良好");
            } else if (85 <= score && score <= 100) {
                System.out.println("成绩等级为 优秀");
            } else {
                System.out.println("成绩不合法");
            }
        }while(0<=score  &&  score<=100);

    }
}
